package org.ccheng.common.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Attribute {

    String key() default "";

    AttributeType type() default AttributeType.CUSTOM;

    boolean format() default true;

    boolean view() default true;

    String regex() default "";
}
